Skip to content

Commit 45c70d0

Browse files
authored
Merge pull request #1373 from vladak/bad_setup_renamed_test
enable renamed file handling in proper way
2 parents 741c4ac + fbbda54 commit 45c70d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/org/opensolaris/opengrok/history/FileHistoryCacheTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opensolaris.opengrok.history;
2424

@@ -351,7 +351,7 @@ public void testRenamedFile() throws Exception {
351351
Repository repo = RepositoryFactory.getRepository(reposRoot);
352352

353353
// The test expects support for renamed files.
354-
System.setProperty("org.opensolaris.opengrok.history.RenamedHandlingEnabled", "1");
354+
RuntimeEnvironment.getInstance().setHandleHistoryOfRenamedFiles(true);
355355

356356
History historyToStore = repo.getHistory(reposRoot);
357357

0 commit comments

Comments
 (0)