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