Home | History | Annotate | Download | only in tests

Lines Matching refs:OS

6 // This program determines which OS that this Valgrind installation
10 // - 0 if the machine matches the asked-for OS and satisfies a
12 // - 1 if it doesn't match but does match the name of another OS
13 // - 2 if it doesn't match the name of any OS
16 // Nb: When updating this file for a new OS, add the name to
57 static Bool go(char* OS, char *min_version)
60 if ( 0 == strcmp( OS, "linux" ) && matches_version( min_version )) return True;
63 if ( 0 == strcmp( OS, "darwin" ) ) return True;
66 # error Unknown OS
79 fprintf( stderr, "usage: os_test <OS-type> [<min-version>]\n" );
87 return 1; // Didn't match, but named another OS.