2 * Copyright (C) 2013, Netronome Systems, Inc.
6 #include <aros/shcommands.h>
11 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
19 { "isfilesystem", TRUE
},
21 { "CONSOLE:", FALSE
},
30 AROS_SH0(isfilesystem
, 0.0)
36 for (i
= 0; i
< ARRAY_SIZE(test
); i
++) {
38 res
= IsFileSystem(test
[i
].value
) ? TRUE
: FALSE
;
39 Printf("IsFileSystem(\"%s\") = %s", test
[i
].value
, (test
[i
].result
== res
) ? "ok" : "FAIL");
40 if (res
!= test
[i
].result
) {
41 Printf(" (expected %s, got %s)\n", test
[i
].result
? "TRUE" : "FALSE", res
? "TRUE" : "FALSE");
48 return failed
? RETURN_FAIL
: RETURN_OK
;