From: nakshtra.goyal@intel.com
To: igt-dev@lists.freedesktop.org, ramadevi.gandi@intel.com
Cc: janga.rahul.kumar@intel.com, himal.prasad.ghimiray@intel.com,
priyanka.dandamudi@intel.com, kamil.konieczny@intel.com
Subject: [PATCH v2 i-g-t] tests/intel/xe_sysfs_defaults: Validate for all default values
Date: Thu, 11 Apr 2024 00:13:30 +0530 [thread overview]
Message-ID: <20240410184330.3897514-1-nakshtra.goyal@intel.com> (raw)
From: Nakshtra Goyal <nakshtra.goyal@intel.com>
Change in igt_assert_f function parameters so that it also validate for
property value equals to 0.
v2: use uint64_t for property_value,use bool __igt_sysfs_get_u64 in
igt_assert_f(Kamil)
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
Cc: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@intel.com>
Signed-off-by: Nakshtra Goyal <nakshtra.goyal@intel.com>
---
tests/intel/xe_sysfs_defaults.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/intel/xe_sysfs_defaults.c b/tests/intel/xe_sysfs_defaults.c
index 4a6b3ba6d..d38a75e55 100644
--- a/tests/intel/xe_sysfs_defaults.c
+++ b/tests/intel/xe_sysfs_defaults.c
@@ -28,7 +28,7 @@
static void test_defaults(int xe, int engine, const char **property)
{
struct dirent *de;
- int property_value;
+ uint64_t property_value;
int defaults;
DIR *dir;
@@ -42,7 +42,7 @@ static void test_defaults(int xe, int engine, const char **property)
igt_debug("Checking attr '%s'\n", de->d_name);
- igt_assert_f(property_value = igt_sysfs_get_u64(defaults, de->d_name),
+ igt_assert_f(__igt_sysfs_get_u64(defaults, de->d_name, &property_value),
"Default value %s is not present!\n", de->d_name);
igt_debug("Default property:%s, value:%d\n", de->d_name, property_value);
--
2.34.1
next reply other threads:[~2024-04-10 18:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-10 18:43 nakshtra.goyal [this message]
2024-04-11 1:16 ` ✗ GitLab.Pipeline: warning for tests/intel/xe_sysfs_defaults: Validate for all default values (rev2) Patchwork
2024-04-11 1:35 ` ✓ CI.xeBAT: success " Patchwork
2024-04-11 1:41 ` ✓ Fi.CI.BAT: " Patchwork
2024-04-11 11:27 ` [PATCH v2 i-g-t] tests/intel/xe_sysfs_defaults: Validate for all default values Kamil Konieczny
2024-04-11 11:49 ` Kamil Konieczny
2024-04-11 13:01 ` ✗ CI.xeFULL: failure for tests/intel/xe_sysfs_defaults: Validate for all default values (rev2) Patchwork
2024-04-11 14:37 ` ✗ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240410184330.3897514-1-nakshtra.goyal@intel.com \
--to=nakshtra.goyal@intel.com \
--cc=himal.prasad.ghimiray@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=janga.rahul.kumar@intel.com \
--cc=kamil.konieczny@intel.com \
--cc=priyanka.dandamudi@intel.com \
--cc=ramadevi.gandi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox