提交记录修改internal/cage/storage_runtime_test.go+4 −3看文件
| @@ -65,9 +65,10 @@ func TestStorageRuntimeUsesVerifiedCopyAndRetainsOriginal(t *testing.T) { | ||
| 65 | 65 | t.Fatal("successful move rolled back") |
| 66 | 66 | } |
| 67 | 67 | assertStorageFile(t, filepath.Join(move.Backup, file), payload) |
| 68 | 删除: actual, err := filepath.EvalSymlinks(storageAnchor(profile)) | |
| 69 | 删除: if err != nil || actual != move.Destination { | |
| 70 | 删除: t.Fatalf("runtime committed before directory: %s %v", actual, err) | |
| 68 | 新增: actual, err := os.Stat(storageAnchor(profile)) | |
| 69 | 新增: destination, targetErr := os.Stat(move.Destination) | |
| 70 | 新增: if err != nil || targetErr != nil || !os.SameFile(actual, destination) { | |
| 71 | 新增: t.Fatalf("runtime committed before directory: anchor %v, destination %v", err, targetErr) | |
| 71 | 72 | } |
| 72 | 73 | return nil |
| 73 | 74 | } |

