@@ -642,12 +642,17 @@ def test_stat(self): |
|
|
642 |
642 |
|
643 |
643 |
@unittest.skipUnless(hasattr(posix, 'mkfifo'), "don't have mkfifo()") |
644 |
644 |
def test_mkfifo(self): |
645 |
|
-os_helper.unlink(os_helper.TESTFN) |
|
645 |
+if sys.platform == "vxworks": |
|
646 |
+fifo_path = os.path.join("/fifos/", os_helper.TESTFN) |
|
647 |
+else: |
|
648 |
+fifo_path = os_helper.TESTFN |
|
649 |
+os_helper.unlink(fifo_path) |
|
650 |
+self.addCleanup(os_helper.unlink, fifo_path) |
646 |
651 |
try: |
647 |
|
-posix.mkfifo(os_helper.TESTFN, stat.S_IRUSR | stat.S_IWUSR) |
|
652 |
+posix.mkfifo(fifo_path, stat.S_IRUSR | stat.S_IWUSR) |
648 |
653 |
except PermissionError as e: |
649 |
654 |
self.skipTest('posix.mkfifo(): %s' % e) |
650 |
|
-self.assertTrue(stat.S_ISFIFO(posix.stat(os_helper.TESTFN).st_mode)) |
|
655 |
+self.assertTrue(stat.S_ISFIFO(posix.stat(fifo_path).st_mode)) |
651 |
656 |
|
652 |
657 |
@unittest.skipUnless(hasattr(posix, 'mknod') and hasattr(stat, 'S_IFIFO'), |
653 |
658 |
"don't have mknod()/S_IFIFO") |
@@ -1929,7 +1934,7 @@ def test_posix_spawnp(self): |
|
|
1929 |
1934 |
class TestPosixWeaklinking(unittest.TestCase): |
1930 |
1935 |
# These test cases verify that weak linking support on macOS works |
1931 |
1936 |
# as expected. These cases only test new behaviour introduced by weak linking, |
1932 |
|
-# regular behaviour is tested by the normal test cases. |
|
1937 |
+# regular behaviour is tested by the normal test cases. |
1933 |
1938 |
# |
1934 |
1939 |
# See the section on Weak Linking in Mac/README.txt for more information. |
1935 |
1940 |
def setUp(self): |