File: testIsWindows

package info (click to toggle)
gnump3d 2.9.3-1sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,420 kB
  • ctags: 366
  • sloc: perl: 10,649; sh: 188; makefile: 147
file content (22 lines) | stat: -rwxr-xr-x 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl -I../lib
# Test that the OS detection works correctly.

use gnump3d::config;

my $windows = &isWindows();


if ( -e "/etc/passwd" )
{
  if ( $windows == 0 )
  {
    exit 0;
  }
  else
  {
    exit 1;
  }
}


exit 0;