public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Richard Palethorpe <rpalethorpe@suse.de>
To: Petr Vorel <pvorel@suse.cz>
Cc: Carlos Hernandez <ceh@ti.com>, Michal Simek <michals@xilinx.com>,
	automated-testing@yoctoproject.org,
	Orson Zhai <orsonzhai@gmail.com>,
	ltp@lists.linux.it, automated-testing@lists.yoctoproject.org
Subject: Re: [LTP] [Automated-testing] [PATCH v2 2/5] lib: Add minimalistic json parser
Date: Fri, 05 Nov 2021 10:56:47 +0000	[thread overview]
Message-ID: <875yt6988e.fsf@suse.de> (raw)
In-Reply-To: <YDyaEd7xNx3NcMGE@pevik>

Hello,

"Petr Vorel" <pvorel@suse.cz> writes:

> Hi Cyril,
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> Nice work!
>
>> +static int eatws(struct tst_json_buf *buf)
>> +{
>> +	while (!buf_empty(buf)) {
>> +		switch (buf->json[buf->off]) {
>> +		case ' ':
>> +		case '\t':
>> +		case '\n':
>> +		case '\f':
> Shouldn't there be '\r' as well? (handled at copy_str()).

Yeah, it seems to be in the spec.

At any rate, I wouldn't mind this patch being applied immediately
because there is more than one WIP it may be useful for.

Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>

>> +		break;
>> +		default:
>> +			goto ret;
>> +		}
>> +
>> +		buf->off += 1;
>> +	}
>> +ret:
>> +	return buf_empty(buf);
>> +}
>
>
> Kind regards,
> Petr
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#872): https://lists.yoctoproject.org/g/automated-testing/message/872
> Mute This Topic: https://lists.yoctoproject.org/mt/80881162/3616767
> Group Owner: automated-testing+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/automated-testing/unsub [rpalethorpe@suse.de]
> -=-=-=-=-=-=-=-=-=-=-=-


-- 
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2021-11-05 11:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 16:50 [LTP] [PATCH v2 0/5] Another attempt at hardware discovery Cyril Hrubis
2021-02-24 16:50 ` [LTP] [PATCH v2 1/5] lib: tst_cmd: Make tst_cmd() usable for global paths Cyril Hrubis
2021-02-24 17:57   ` [LTP] [Automated-testing] " Petr Vorel
2021-02-24 16:50 ` [LTP] [PATCH v2 2/5] lib: Add minimalistic json parser Cyril Hrubis
2021-03-01  7:38   ` [LTP] [Automated-testing] " Petr Vorel
2021-11-05 10:56     ` Richard Palethorpe [this message]
2021-11-05 11:16       ` Cyril Hrubis
2021-02-24 16:50 ` [LTP] [PATCH v2 3/5] lib: Add hardware discovery code Cyril Hrubis
2021-02-24 16:50 ` [LTP] [PATCH v2 4/5] Sample hardware discovery and reconfigure scripts Cyril Hrubis
2021-02-24 16:50 ` [LTP] [PATCH v2 5/5] testcases: uart01: Add Cyril Hrubis
2021-02-26 19:20 ` [LTP] [Automated-testing] [PATCH v2 0/5] Another attempt at hardware discovery Tim.Bird
2021-03-01 11:57   ` Cyril Hrubis
2021-11-05 10:30     ` Richard Palethorpe
2021-03-01 10:30 ` [LTP] " Cixi Geng
2021-03-01 13:24   ` Cyril Hrubis

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=875yt6988e.fsf@suse.de \
    --to=rpalethorpe@suse.de \
    --cc=automated-testing@lists.yoctoproject.org \
    --cc=automated-testing@yoctoproject.org \
    --cc=ceh@ti.com \
    --cc=ltp@lists.linux.it \
    --cc=michals@xilinx.com \
    --cc=orsonzhai@gmail.com \
    --cc=pvorel@suse.cz \
    /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