|
73 | 73 | close$file;
|
74 | 74 | }
|
75 | 75 |
|
76 |
| -# Test that macOS system files are skipped. Only test on non-macOS systems |
77 |
| -# however since creating incorrect .DS_Store files on a macOS system may have |
78 |
| -# unintended side effects. |
79 |
| -if ($Config{osname}ne'darwin') |
80 |
| -{ |
81 |
| -openmy$file,'>>',"$pgdata/.DS_Store"; |
82 |
| -print$file"DONOTCOPY"; |
83 |
| -close$file; |
84 |
| -} |
85 |
| - |
86 | 76 | # Connect to a database to create global/pg_internal.init. If this is removed
|
87 | 77 | # the test to ensure global/pg_internal.init is not copied will return a false
|
88 | 78 | # positive.
|
|
151 | 141 | ok(!-f"$tempdir/backup/$filename","$filename not copied");
|
152 | 142 | }
|
153 | 143 |
|
154 |
| -# We only test .DS_Store files being skipped on non-macOS systems |
155 |
| -if ($Config{osname}ne'darwin') |
156 |
| -{ |
157 |
| -ok(!-f"$tempdir/backup/.DS_Store",".DS_Store not copied"); |
158 |
| -} |
159 |
| - |
160 | 144 | # Unlogged relation forks other than init should not be copied
|
161 | 145 | ok(-f"$tempdir/backup/${baseUnloggedPath}_init",
|
162 | 146 | 'unlogged init fork in backup');
|
|