forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-gfx/nvidia-texture-tools: fix test datapath handling
Closes: https://bugs.gentoo.org/740766 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Bernard Cafarelli <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.1.2-test_path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 4c95dc87165a439698f63c3861c7c17b1fe2193a Mon Sep 17 00:00:00 2001 | ||
From: Bernard Cafarelli <[email protected]> | ||
Date: Mon, 7 Sep 2020 14:29:22 +0200 | ||
Subject: [PATCH] Fix data testsuite path | ||
|
||
Add separator between base path and set path if base path is set | ||
|
||
Fixes #299 | ||
--- | ||
src/nvtt/tests/testsuite.cpp | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/src/nvtt/tests/testsuite.cpp b/src/nvtt/tests/testsuite.cpp | ||
index 9737807..06ab9d1 100644 | ||
--- a/src/nvtt/tests/testsuite.cpp | ||
+++ b/src/nvtt/tests/testsuite.cpp | ||
@@ -509,6 +509,9 @@ int main(int argc, char *argv[]) | ||
nvtt::Context context; | ||
context.enableCudaAcceleration(!nocuda); | ||
|
||
+ if (basePath.length() > 0) { | ||
+ basePath.appendSeparator(); | ||
+ } | ||
basePath.append(set.basePath); | ||
|
||
FileSystem::changeDirectory(basePath.str()); | ||
-- | ||
2.28.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters